/*
 * ConsultasSource.java
 *
 * Created on 1 de junio de 2006, 13:49
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.consultas.source;

import java.util.ResourceBundle;

/**
 *
 * @author root
 */
public class ConsultasSource {
    
    protected static ConsultasSource consultasSource;
    private static ResourceBundle consultasSetup;
    private static ResourceBundle consultasMessagesSetup;
    
    /** Creates a new instance of PathImage */
    protected ConsultasSource() {
        consultasSetup = ResourceBundle.getBundle("ConsultasSetup");
        consultasMessagesSetup = ResourceBundle.getBundle("ConsultasMessagesSetup");
    }
    
    public static ConsultasSource getInstance() {
        if (consultasSource == null) {
            consultasSource = new ConsultasSource();
        }
        return consultasSource;
    }
    
    public String getConsultasSetupKey(String key) {
        return consultasSetup.getString(key);
    }
    
    public String getConsultasMessagesSetupKey(String key) {
        return consultasMessagesSetup.getString(key);
    }
}